home *** CD-ROM | disk | FTP | other *** search
-
- NAME
- SRun
-
- SYNOPSIS
- SRun - run a program synchroneously - Requires v37
-
- INPUTS
- "COMMAND/F"
-
- FUNCTION
- This simple program does not more than
- call 'SystemTags' with its arguments.
- U wanna know the purpose of such a program?
- Have U ever tried to redirect the output
- of a Dos script? No chance!
- > echo "echo Hallo" | execute > t:t in:
- "Hallo"
- in fact execute does _not_ take any respect
- of any I/O redirections (it seems like this
- in caused by the fact, that "Execute" itself
- is part of the Shell). The solution would
- have been usage of "Run" since that command
- spawns a new process, whose stdio channels
- can be redirected. But what happenes, if we
- can not use a asynchroneous process? (e.g.
- cause we wanna use the normal console input)
- Now, that is the purpose of "SRun".
-
- RESULT
- STDOUT: the output of the 'command' execution.
- RC: returnvalue of SystemTags() or >=10
-
- NOTES
- CLI - only
-
- should compile with SAS-C
-
- SRun* does currently not call ReadArgs, this is due
- to a bug(?) in readargs that removes some whitespace
- and quotes from argstring even with /F option
-
- BUGS
- "SRun COMMAND commandstring" fails; U _MUST_ use
- "SRun commandstring"
-
- EXAMPLES
- >SRun echo hallo
- "hallo"
-
- AUTHOR
- Bernd Noll, Brunnenstrasse 55, D-67661 Kaiserslautern
- noll@student.uni-kl.de
-
-
-
-